<div ng-controller="StudentListController"></div>
<h4 class="text-danger text-bold text-center">学生报道情况</h4>
<div class="row">
    <table st-table="studentdisplay" st-pipe="callserver" st-select-mode="single" class="table table-hover table-bordered table-condensed table-striped">
        <thead>
            <tr>
                <td colspan="7" class="text-center">
                    <tm-pagination conf="paginationConf"></tm-pagination>
                </td>
            </tr>
            <tr class="text-primary text-center text-bold">
                <td colspan="7" class="text-left">
                    <div>
                        <div class="form-inline"><label>学生ID:</label><input ng-model="Student_id" placeholder="搜索学生ID" class="input-sm form-control" type="search"><label>学生姓名:</label><input ng-model="Student_name" placeholder="搜索姓名" class="input-sm form-control" type="search">                            所在专业:<select ng-model="Spe_ID" ng-options="zhuanye.Spe_id as zhuanye.Spe_name group by zhuanye.Dept_name for zhuanye in zhuanyelist" ng-select><option value="">全部</option></select></div>
                        <div class="form-inline">通知书号:<input ng-model="Student_tzsh" placeholder="搜索通知书号" class="input-sm form-control" type="search"> 省份:<select ng-model="Student_shengfen"><option value="">全部</option><option ng-repeat="student in studentshengfen" value="{{student.Student_shengfen}}" ng-bind="student.Student_shengfen"></option></select>是否报到:
                            <select ng-model="Student_isbd">
                                    <option value="">全部</option>
                                    <option value="0">未报到</option>
                                    <option value="1">已报到</option>
                                    </select>&nbsp;<button type="button" class="btn btn-danger" ng-click="resetall()">重置</button>&nbsp;<button type="button" class="btn btn-primary" ng-click="getStudent()">提交</button>&nbsp;
                            <button type="button" class="btn btn-primary" ng-click="scanBarcode()">扫描</button>
                        </div>
                    </div>
                </td>
            </tr>
            <tr class="sortable text-center text-primar text-bold">
                <th class="text-center col-md-1">ID</th>
                <th class="text-center col-md-2" st-sort="Student_name">姓名</th>
                <th class="text-center col-md-2" st-sort="Spe_name">专业</th>
                <th class="text-center col-md-2" st-sort="Student_tzsh">通知书号</th>
                <th class="text-center col-md-2" st-sort="Student_shengfen">省份</th>
                <th class="text-center col-md-2">报道</th>
                <th class="text-center col-md-1">操作</th>
            </tr>
        </thead>
        <tbody ng-show="isLoading">
            <tr>
                <td colspan="7" class="text-center text-danger text-bold">
                    <h3>加载中</h3>
                </td>
            </tr>
        </tbody>
        <tbody ng-show="!isLoading">
            <tr ng-repeat="row in studentdisplay" class="text-center">
                <td class="col-xs-1 text-nowrap">{{row.Student_id}}</td>
                <td class="col-xs-2 text-nowrap">{{row.Student_name}}</td>
                <td class="col-xs-2 text-nowrap">{{row.Spe_name}}</td>
                <td class="col-xs-2 text-nowrap">{{row.Student_tzsh}}</td>
                <td class="col-xs-2 text-nowrap">{{row.Student_shengfen}}</td>
                <td class="col-xs-2 text-nowrap" ng-class="row.Student_isbd == 1 ? 'text-success' :  'text-danger'" ng-bind="row.Student_isbd==1 ? '是':'否'"></td>
                <td class="col-xs-1 text-nowrap"><a ng-href="" ng-click="ShowDetail(row.Student_id)" class="text-danger"><span class="icon icon-cursor"></span>详情</a></td>
            </tr>
        </tbody>
        <tfoot>
            <tr></tr>
        </tfoot>
    </table>
</div>
</div>